<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/dianduproject/ribao/Diandu_Daily.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/dianduproject/ribao/Diandu_Daily.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Diandu_Daily",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "电镀日报",
                name: "ribao/Diandu_Daily",
                newTabEdit: false,
                url: "/Diandu_Daily/",
                sortName: "Id"
            });
            const editFormFields = ref({"WorkOrder":"","Product":"","LotNo":"","SendWeight":"","SendTime":"","DaojiaoQty":"","DaojiaoWeight":"","DianduGroup":"","DianduWeight":"","DianduQty":"","Remarks":""});
            const editFormOptions = ref([[{"title":"加工单号","field":"WorkOrder","type":"selectTable"},
                               {"title":"产品","field":"Product","disabled":true}],
                              [{"title":"投料批次","field":"LotNo","disabled":true},
                               {"title":"发料重量","field":"SendWeight","disabled":true}],
                              [{"title":"领料时间","field":"SendTime","disabled":true}],
                              [{"title":"倒角后数量","field":"DaojiaoQty","type":"number"},
                               {"title":"倒角后重量","field":"DaojiaoWeight","type":"decimal"}],
                              [{"dataKey":"DianDuType","data":[],"title":"电镀工序","field":"DianduGroup","type":"select"}],
                              [{"title":"电镀后重量","field":"DianduWeight","type":"decimal"},
                               {"title":"电镀后数量","field":"DianduQty","type":"number"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"WorkOrder",title:"加工单号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Product",title:"产品",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"LotNo",title:"投料批次",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"SendWeight",title:"发料重量",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"SendTime",title:"领料时间",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"DaojiaoQty",title:"倒角后数量",type:"int",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DaojiaoWeight",title:"倒角后重量",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DaojiaoTime",title:"倒角完成时间",type:"datetime",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DaojiaoCreator",title:"倒角填写人",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"DianduGroup",title:"电镀工序",type:"string",bind:{ key:"DianDuType",data:[]},width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DianduWeight",title:"电镀后重量",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DianduQty",title:"电镀后数量",type:"int",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DianduTime",title:"电镀完成时间",type:"datetime",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"DianduCreator",title:"电镀填写人",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
